﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserSet.aspx.cs" Inherits="Besture.UI.Admin.User.UserSet" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <style type="text/css">
        .table-module01 th, td
        {
            padding: 8px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="editPage">
        <div class="tab-ct-wrap">
            <!-- Begin 选项卡1 -->
            <div class="tab1">
                <table class="table-module01" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <th width="130" align="right">
                                登录名：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox
                                    ID="txtName" runat="server" MaxLength="30" class="input-text required" Width="400px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                登录密码：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox
                                    ID="txtPassword" runat="server" MaxLength="200" class="input-text required" minlength="6"
                                    TextMode="Password" Width="400px" ClientIDMode="Static"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                确认登录密码：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox
                                    ID="txtPasswordAgain" runat="server" MaxLength="200" class="input-text required"
                                    minlength="6" equalTo='#txtPassword' TextMode="Password" Width="400px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                角色：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/dispensable.png" align="absMiddle" />
                                <asp:Repeater runat="server" ID="rpRoles">
                                    <ItemTemplate>
                                        <dx:ASPxCheckBox runat="server" Text='<%#Eval("Name") %>' ID="cbRoles" Checked='<%#HasRoles(Eval("ID").ToString())%>'>
                                        </dx:ASPxCheckBox>
                                        <asp:Label ID="lbRolesID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Label>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                属性：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/dispensable.png" align="absMiddle" />
                                <dx:ASPxCheckBox runat="server" Text="冻洁" ID="acbIsFreeze">
                                </dx:ASPxCheckBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                &nbsp;
                            </th>
                            <td>
                                <span class="btn-sure-wrap">
                                    <asp:Button runat="server" ID="btnSubmit" CssClass="btn-sure btn-edit" Text="保存"
                                        OnClick="btnSubmit_Click" /></span> <span class="btn-cancel-wrap">
                                            <input type="button" class="btn-cancel" value="取消" onclick="location.href='UserList.aspx'" /></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <%--<div class="mainbox">
        <div>
            <div>
                <table width="98%" cellspacing="0" cellpadding="0" class="table_form">
                    <tr>
                        <th>
                            登录名：
                        </th>
                        <td>
                            <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtName" runat="server" MaxLength="30" class="input-text required" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            登录密码：
                        </th>
                        <td>
                            <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtPassword" runat="server" MaxLength="200" class="input-text required"
                                minlength="6" TextMode="Password" Width="400px" ClientIDMode="Static"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            确认登录密码：
                        </th>
                        <td>
                            <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtPasswordAgain" runat="server" MaxLength="200" class="input-text required"
                                minlength="6" equalTo='#txtPassword' TextMode="Password" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            角色：
                        </th>
                        <td>
                            <img src="/Admin/Themes/Images/dispensable.png" align="absMiddle" />
                            <asp:Repeater runat="server" ID="rpRoles">
                                <ItemTemplate>
                                    <dx:ASPxCheckBox runat="server" Text='<%#Eval("Name") %>' ID="cbRoles" Checked='<%#HasRoles(Eval("ID").ToString())%>'>
                                    </dx:ASPxCheckBox>
                                    <asp:Label ID="lbRolesID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Label>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            属性：
                        </th>
                        <td>
                            <img src="/Admin/Themes/Images/dispensable.png" align="absMiddle" />
                            <dx:ASPxCheckBox runat="server" Text="冻洁" ID="acbIsFreeze">
                            </dx:ASPxCheckBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonDiv">
                <asp:Button runat="server" ID="btnSubmit" CssClass="button" Text="保存" OnClick="btnSubmit_Click" />
                <input type="button" class="button" value="取消" onclick="location.href='UserList.aspx'" />
            </div>
        </div>
    </div>--%>
</asp:Content>
